/* C Program to convert input distance in meter, feet, inches, centimeter */
#include <stdio.h>


int main() {

float kilometer, meter, miles, inches, distance;

printf("\n Enter the distance [in meters]: ");
scanf("%f", &distance);
kilometer = distance /1000;
printf("\n Value in km= %f", kilometer);

printf("\n Enter the distance [in kilometers]: ");
scanf("%f", & distance);
meter = distance * 1000;
printf("Value in meter=%f",meter);

printf("\n Enter the distance [in miles]: ");
scanf("%f", & distance);
kilometer = distance*1.60934;
printf("Value in kilometer=%f",kilometer);


printf("\n Enter the distance [in kilometers]: ");
scanf("%f", & distance);
miles = distance/1.60934;
printf("Value in miles=%f",miles);


printf("\n Enter the distance [in inches]: ");
scanf("%f", & distance);
meter = distance*39.37;
printf("Value in meter=%f",meter);


printf("\n Enter the distance [in meters]: ");
scanf("%f", & distance);
inches = distance/39.37;
printf("Value in inches=%f",inches);


 return 0;
}
